//
// Created by Zsir on 2025/7/29.
//

#ifndef TCPSERVER_THREAD_H
#define TCPSERVER_THREAD_H

#define EPOLL_SIZE 1024

#include "functional"

#include <csignal>

class Thread
{
public:
    using Func = void* (*)(void*);

    Thread(Func func, void *arg);

    ~Thread();
private:
    Func func_;
    pthread_t threadId_{};
    void *arg_;
};


#endif //TCPSERVER_THREAD_H
